package com.shop.cereshop.app.dl.logic.service.Impl;

import com.shop.cereshop.app.dao.dl.CereShopDestroyTicketsDao;
import com.shop.cereshop.app.dl.logic.domain.CereShopDestroyTickets;
import com.shop.cereshop.app.dl.logic.service.CereShopDestroyTicketsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: 况鑫威
 * @Date: 2021/7/27
 * @Time: 15:21
 * @ClassName: CereShopDestroyTicketsServiceImpl
 * @Description: com.shop.cereshop.app.dl.logic.service.Impl
 */
@Service
public class CereShopDestroyTicketsServiceImpl implements CereShopDestroyTicketsService {
    @Autowired
    private CereShopDestroyTicketsDao cereShopDestroyTicketsDao;

    @Override
    public int deleteByPrimaryKey(Long destroyId) {
        return cereShopDestroyTicketsDao.deleteByPrimaryKey(destroyId);
    }

    @Override
    public int insert(CereShopDestroyTickets record) {
        return cereShopDestroyTicketsDao.insert(record);
    }

    @Override
    public int insertSelective(CereShopDestroyTickets record) {
        return cereShopDestroyTicketsDao.insertSelective(record);
    }

    @Override
    public CereShopDestroyTickets selectByPrimaryKey(Long destroyId) {
        return cereShopDestroyTicketsDao.selectByPrimaryKey(destroyId);
    }

    @Override
    public int updateByPrimaryKeySelective(CereShopDestroyTickets record) {
        return cereShopDestroyTicketsDao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(CereShopDestroyTickets record) {
        return cereShopDestroyTicketsDao.updateByPrimaryKey(record);
    }
}
